package edu.bit.water.dao;

import edu.bit.water.entity.ManagementIndicator;
import edu.bit.water.entity.MetaAI;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MetaAIDao {
    int insertMetaAI(MetaAI metaAI) throws DataIntegrityViolationException;
    int insertMetaAINote(MetaAI metaAI) throws DataIntegrityViolationException;
    Integer getMaxId();
    Integer getMaxId1();
    int deleteMetaAI(@Param("id") int id);
    int deleteMetaAINote(@Param("id") int id);
    int updateMetaAI(MetaAI metaAI);
    int updateMetaAINote(MetaAI metaAI);
    List<MetaAI> selectMetaAI(String stNumber);
    List<MetaAI> selectMetaAINote(String stNumber);
    //级联删除
    int managementDelete(String assessmentContent, String standardNumber);
    //级联修改
    int managementUpdate(ManagementIndicator managementIndicator);
}
